package com.petshop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @TableName pet_product
 */
@TableName(value = "pet_product")
@Data
public class PetProduct implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "good_id", type = IdType.AUTO)
    private Integer goodId;
    private String goodCategory;
    private String goodName;
    private String goodSex;
    private String goodDescription;
    private BigDecimal goodPrice;
    private String goodStock;
    private String petImage;
    private Date createdAt;
    private Date updatedAt;
    @Version
    private Integer goodVersion;
}